package com.qkl.xiatang.app.workflow.service;

import com.qkl.xiatang.app.dto.BusinessDTO;
import com.qkl.xiatang.app.dto.upload.UploadFileWebDTO;
import com.qkl.xiatang.app.utils.Result;
import com.qkl.xiatang.app.workflow.dto.TaskFunctionRelDto;

import java.util.Map;

public interface IWorkFlowService {

    Result workflowPageOnWay(int pageIndex, int pageSize);

    Result workflowPageOnWayDone(int pageIndex, int pageSize);

    Result workflowPageOnDone(int pageIndex, int pageSize);

    Result workflowPageOnWayPending(int pageIndex, int pageSize);

    Result workflowPageOnPending(int pageIndex, int pageSize);

    Result workflowPageOnWayReject(int pageIndex, int pageSize);

    Result selectTaskDetail(Integer id);

    Result workflowPageOnWayCount();

    Result workflowPageOnAdminCount();

    Result selectCurrentTask(String businessId, String businessKey);

    Result complete(Map<String, Object> requestBody);

    Result reject(Map<String, Object> requestBody);

    BusinessDTO<Object> completeUploadFile(UploadFileWebDTO webDTO);

    Result workflowPage(TaskFunctionRelDto taskFunctionRelDto);
}
